package com.hd.trans.network.apiService;

import com.hd.trans.network.bean.TaskResultResponse;
import com.hd.trans.network.bean.textToVoice.Text2VoiceResponse;
import com.hd.trans.network.bean.wavToLip.Wav2LipResponse;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface V4ApiService {

    /**
     * 任务查询接口
     *  该接口为 轮询接口, 建议 轮询间隔 2.5秒 以上, 轮询总时长超过 3分钟 强制停止轮询, 客户端开发需根据实际需求灵活调整.
     */
    @POST("api/v4/sub/ae-task/result")
    Observable<TaskResultResponse> queryTask(@Body RequestBody requestBody);

    /**
     * 文字转语音
     */
    @POST("api/v4/sub/ae-task/mac/text-to-voice")
    Observable<Text2VoiceResponse> textToVoice(@Body RequestBody requestBody);

    /**
     * 视频对口型任务
     */
    @POST("api/v4/sub/ae-task/wav-to-lip")
    Observable<Wav2LipResponse> wavToLip(@Body RequestBody requestBody);
}
